﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="order_detail.aspx.cs" Inherits="AnyOffice.general.vehicle.order_detail" %>

<%@Register TagPrefix="Webdiver" Namespace="Webdiver" Assembly="AspnetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>车辆预定情况</title>
		
		<script>
		function open_usage(usage_id)
		{
			URL="usage_detail.aspx?usage_id=" + usage_id;
			myleft=(screen.availWidth-400)/2;
			window.open(URL,"read_usage","height=380,width=400,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
		}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<table class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
				<tr>
					<td class="Big" width="40%"><img src="/images/menu/vehicle.gif" width="20" height="20"><span class="big3"> 车辆预定情况 - 
<asp:Literal id="litNavTitle" runat="server"></asp:Literal></span></td>
					<td width="20%">
						<asp:Literal id="litNavCount" runat="server"></asp:Literal>
					</td>
					<td width="40%">
						<asp:Literal id="litNavPager" runat="server"></asp:Literal>
					</td>
				</tr>
			</table>
			<asp:panel id="pnlMain" runat="server">
				<asp:Repeater id="rptVehicleUsage" runat="server">
					<HeaderTemplate>
						<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3">
							<tr class="TableHeader">
								<td noWrap align="center">状态</td>
								<td noWrap align="center">用车人</td>
								<td noWrap align="center">事由</td>
								<td noWrap align="center">开始时间</td>
								<td noWrap align="center">结束时间</td>
								<td noWrap align="center">备注</td>
								<td noWrap align="center">操作</td>
							</tr>
					</HeaderTemplate>
					<ItemTemplate>
					<tr class="TableLine1">
						<td noWrap align="center"><%#GetStatusDesc(Convert.ToInt32(Eval("Status")))%></td>										
						<td noWrap align="center"><%#Eval("Person")%></td>
						<td><%#Eval("Reason")%></td>
						<td noWrap align="center"><%#Eval("StartTime")%></td>						
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td><%#Eval("Remark")%></td>
						<td noWrap align="center">
							<a href="javascript:open_usage('<%#Eval("UsageId")%>');">详细信息</a>
						</td>
					</tr>
				</ItemTemplate>
				<AlternatingItemTemplate>
					<tr class="TableLine2">
						<td noWrap align="center"><%#GetStatusDesc(Convert.ToInt32(Eval("Status")))%></td>										
						<td noWrap align="center"><%#Eval("Person")%></td>
						<td><%#Eval("Reason")%></td>
						<td noWrap align="center"><%#Eval("StartTime")%></td>						
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td><%#Eval("Remark")%></td>
						<td noWrap align="center">
							<a href="javascript:open_usage('<%#Eval("UsageId")%>');">详细信息</a>
						</td>
					</tr>
				</AlternatingItemTemplate>
					<FooterTemplate>
						</table>
					</FooterTemplate>
				</asp:Repeater>
				<TABLE width="100%" border="0">
					<TR>
						<TD>
							<Webdiver:AspNetPager id="AspNetPager1" runat="server" AlwaysShow="True" PageSize="10" DisabledButtonImageNameExtension="g"
								CpiButtonImageNameExtension="r" ButtonImageNameExtension="n" ImagePath="../images" PagingButtonSpacing="0"
								CustomInfoSectionWidth="35%" UrlPaging="True" NumericButtonTextFormatString="[{0}]" SubmitButtonText="转到"
								ShowInputBox="Always" ShowCustomInfoSection="left" HorizontalAlign="Right" OnPageChanged="ChangePage"
								Font-Size="10pt" SubmitButtonClass="SmallButton" InputBoxClass="SmallInput" CssClass="small1"></Webdiver:AspNetPager></TD>
					</TR>
				</TABLE>
			</asp:panel>
			<asp:literal id="litMessage" runat="server"></asp:literal>
		</form>
	</body>
</HTML>
